<?php
require_once 'PHPUnit/Framework.php';
$dbms = "mysql";
$pathAdjust = "../../../scripts/";
if((@include_once "{$pathAdjust}initIncludePaths.inc") == "1")
    echo "included from $pathAdjust\r\n";
else {
    $pathAdjust = "../../scripts/";
    if((@include_once "{$pathAdjust}initIncludePaths.inc") == "1")
        echo "included from $pathAdjust\r\n";
    else {
        $pathAdjust = "../scripts/";
        if((@include_once "{$pathAdjust}initIncludePaths.inc") == "1")
            echo "included from $pathAdjust\r\n";
        else {
            $pathAdjust = "scripts/";
            if((@include_once "{$pathAdjust}initIncludePaths.inc") == "1")
                echo "included from $pathAdjust\r\n";
            else {
                $pathAdjust = "./";
                if((@include_once "{$pathAdjust}initIncludePaths.inc") == "1")
                    echo "included from $pathAdjust\r\n";
            }
        }
    }
}
$GLOBALS['adjPath'] = $pathAdjust;
include_once "dbFac.inc";
include_once "database.inc";


class AATest extends PHPUnit_Framework_TestCase {
    public function testCreateTableSpace() {
        echo"SETUP table space\r\n";
        $dbf = new DatabaseFactory();
        $db = $dbf->connect();
        $db->executeSQL("CREATE SCHEMA test2DB");
        $db->connect("localhost","test2DB","root","");
        $db->createTableSpace($GLOBALS['adjPath']);
        echo"SETUP done\r\n\r\n";
    }
}

?>